import assessCheckApi from './api'
import { axios } from '@/utils/request'
import router from '@/router/index'
import blobType from '@/common/blobType'
var menuType = blobType.menuType
var fywflcodeArr = blobType.fywflcodeArr
var fywflcode = ''


export function queryQyxxById(data){
    fywflcode = fywflcodeArr[menuType.indexOf(router.app._route. name.substring(router.app._route.name.indexOf('__'),router.app._route.name.indexOf('_a')+2))]
    return axios({
      url: assessCheckApi.queryQyxxById,
      method:'get' ,
      params:data?{...data,fywflcode:fywflcode?fywflcode:(data.fywflcode?data.fywflcode:'')}:{},
      url_1:'outside'
    })
  }